﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyExe.Models
{
    public class FileUIModel
    {
        public string Guid { get; set; }

        public string FileType { get; set; }

        public string FileName { get; set; }

        public string FileHardDisk { get; set; }

        public string FilePath { get; set; }

        public long? FileLength { get; set; }

        public long? FileTimeSpan { get; set; }

        public string FileTime { get; set; }

        public string CollectTime { get; set; }

        public string ThumbnailFilePath { get; set; }

        public string ThumbnailFileTime { get; set; }

        public string ConvertFilePath { get; set; }

        public string ConvertFileTime { get; set; }

        public string UploadFileTime { get; set; }

        public string DeviceNo { get; set; }

        public string UserNo { get; set; }

        public string UserName { get; set; }

        public string DepNo { get; set; }

        public string DepName { get; set; }

        public int? IsImportant { get; set; }

        public int? IsDelete { get; set; }

        public string CreateTime { get; set; }

        public string Remark { get; set; }

        //public BitmapImage? FileBitmapImage
        //{
        //    get
        //    {
        //        try
        //        {
        //            switch (FileType)
        //            {
        //                case "图片":
        //                case "视频":
        //                    if (!string.IsNullOrEmpty(ThumbnailFilePath))
        //                    {
        //                        string thumPath = Path.Combine(FileHardDisk, ThumbnailFilePath);
        //                        return ImageHelper.InitImage(thumPath);
        //                    }
        //                    return null;
        //            }
        //        }
        //        catch
        //        {
        //        }
        //        return null;
        //    }
        //}

    }

    public class RnFile
    {
        private string _fileType = string.Empty;
        public string FileType
        {
            get { return _fileType; }
            set { _fileType = value; }
        }

        private string _fileName = string.Empty;
        public string FileName
        {
            get { return _fileName; }
            set { _fileName = value; }
        }

        private string _fileHardDisk = string.Empty;
        public string FileHardDisk
        {
            get { return _fileHardDisk; }
            set { _fileHardDisk = value; }
        }

        private string _filePath = string.Empty;
        public string FilePath
        {
            get { return _filePath; }
            set { _filePath = value; }
        }

        private string _fileLength = string.Empty;
        public string FileLength
        {
            get { return _fileLength; }
            set { _fileLength = value; }
        }

        private string _fileTimeSpan = string.Empty;
        public string FileTimeSpan
        {
            get { return _fileTimeSpan; }
            set { _fileTimeSpan = value; }
        }

        private string _fileTime = string.Empty;
        public string FileTime
        {
            get { return _fileTime; }
            set { _fileTime = value; }
        }

        private string _collectTime = string.Empty;
        public string CollectTime
        {
            get { return _collectTime; }
            set { _collectTime = value; }
        }

        private string _thumbnailFilePath = string.Empty;
        public string ThumbnailFilePath
        {
            get { return _thumbnailFilePath; }
            set { _thumbnailFilePath = value; }
        }

        private string _thumbnailFileTime = string.Empty;
        public string ThumbnailFileTime
        {
            get { return _thumbnailFileTime; }
            set { _thumbnailFileTime = value; }
        }

        private string _convertFilePath = string.Empty;
        public string ConvertFilePath
        {
            get { return _convertFilePath; }
            set { _convertFilePath = value; }
        }

        private string _convertFileTime = string.Empty;
        public string ConvertFileTime
        {
            get { return _convertFileTime; }
            set { _convertFileTime = value; }
        }

        private string _uploadFileTime = string.Empty;
        public string UploadFileTime
        {
            get { return _uploadFileTime; }
            set { _uploadFileTime = value; }
        }

        private string _deviceNo = string.Empty;
        public string DeviceNo
        {
            get { return _deviceNo; }
            set { _deviceNo = value; }
        }

        private string _depNo = string.Empty;
        public string DepNo
        {
            get { return _depNo; }
            set { _depNo = value; }
        }

        private string _depName = string.Empty;
        public string DepName
        {
            get { return _depName; }
            set { _depName = value; }
        }

        private string _userNo = string.Empty;
        public string UserNo
        {
            get { return _userNo; }
            set { _userNo = value; }
        }

        private string _userName = string.Empty;
        public string UserName
        {
            get { return _userName; }
            set { _userName = value; }
        }

        private int _isImportant;
        public int IsImportant
        {
            get { return _isImportant; }
            set { _isImportant = value; }
        }

        private int _isDelete;
        public int IsDelete
        {
            get { return _isDelete; }
            set { _isDelete = value; }
        }

        private string _createTime = string.Empty;
        public string CreateTime
        {
            get { return _createTime; }
            set { _createTime = value; }
        }

        private string _remark = string.Empty;
        public string Remark
        {
            get { return _remark; }
            set { _remark = value; }
        }

        private string _stationKey;
        public string StationKey
        {
            get { return _stationKey; }
            set { _stationKey = value; }
        }

    }
}
